﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Skyray.Net
{
    /// <summary>
    ///  网络连接状态反馈
    /// </summary>
    public enum LanTransState
    {
        /// <summary>
        /// 正常断开
        /// </summary>
        Normal,
        /// <summary>
        /// 停止
        /// </summary>
        Stop,
        /// <summary>
        /// 服务没有打开
        /// </summary>
        Refuse,
        ///<summary>
        ///网络断线
        /// </summary>
        UnReachable,
        /// <summary>
        /// 接收数据头超时
        /// </summary>
        HeaderTimeout,
        /// <summary>
        /// 接收数据超时
        /// </summary>
        DataTimeout,
    }
    /// <summary>
    /// 数据断线异常
    /// </summary>
    /// <param name="reason"></param>
    public delegate void LanstatusChangedEventHandler(LanTransState reason);
}
